package com.example.design.patterns.geekbang.结构型.结构类似的模式.适配器模式.封装有缺陷的接口设计;

// 注意：适配器类的命名不一定非得末尾带Adaptor
public class CDAdaptor extends CD implements ITarget {
    //... 
    public void function1() {
        super.staticFunction1();
    }

    public void function2() {
        super.uglyNamingFunction2();
    }

    /**
     *
     * @param paramsWrapper
     */
    @Override
    public void fucntion3(ParamsWrapperDefinition paramsWrapper) {

    }

    public void function3(ParamsWrapperDefinition paramsWrapper) {
        super.tooManyParamsFunction3(paramsWrapper.getParamA(), paramsWrapper.getParamB());
    }

    public void function4() { //...reimplement it... 
    }
}
